package b2.config
{
	public class MatchConfig
	{
		//比赛索引
		public var index:int;
		//比赛名称
		public var name:String;
		//比赛详情
		public var description:String;
		//开始时间
		public var startTime:int;
		//比赛时间（分钟）
		public var duration:int;
		//战力的下限
		public var fpLimitLow:int;
		//战力的上限
		public var fpLimitUp:int;
		//等级的下限
		public var levelLimitLow:int;
		//等级的上限
		public var levelLimitUp:int;
		//战役索引
		public var campIndex:int;
		//战役难度
		public var difficulty:int;
		//荣誉奖励
		public var honourAward:Array;
		//石油奖励
		public var oilAward:Array;
		
		public function MatchConfig(matchXML:XML)
		{
			index = matchXML.index;
			name = matchXML.name;
			description = matchXML.description;
			startTime = matchXML.startTime;
			duration = matchXML.duration;
			fpLimitLow = matchXML.fpLimit.split(",")[0];
			fpLimitUp = matchXML.fpLimit.split(",")[1];
			levelLimitLow = matchXML.levelLimit.split(",")[0];
			levelLimitUp = matchXML.levelLimit.split(",")[1];
			campIndex = matchXML.campIndex;
			difficulty = matchXML.difficulty;
			honourAward = matchXML.honourAward.split(",");
			oilAward = matchXML.oilAward.split(",");
		}

	}
}